Ext.define('OrderConvert.view.order.dep.DepListTreeModel', {
    extend: 'Ext.app.ViewModel',
    alias: 'viewmodel.order-dep-deplisttree',
    data: {
        name: 'OrderConvert'
    },

    stores: {
        treeStore: {
            type: 'tree',
            proxy: {
                type: 'ajax',
                url:  OrderConvertUrl.constant.serverUrl + 'org/orgTreeList'
            },
            rootVisible : false,
            fields: ['text']
            // root: {
            //     expanded: true,
            //     text : '部门列表'
            // }
        }
    }

});
